<?php

/*
*###########################################################################################################################*
#															    															#
#															    															#
#    **  ** ****** ** **  **  ****** ** ***   ** ***   ****** ** **  **  ** **  ** ** **  **    ****   ** **  **  ******    #
#    **  ** ****** ********** ****** *******  *******  ****** ********** ** **  ** **********  ******  ********** ******    #
#    **  ** **  ** **  **  ** **     ***   ** **    ** **     **  **  **    **  ** **  **  ** ***   ** **  **  ** **        #
#    ****** **  ** **  **  ** ****** **   *** **   *** ****** **  **  ** ** **  ** **  **  ** **       **  **  ** ******    #
#    ****** **  ** **  **  ** ****** *******  *******  ****** **  **  ** ** **  ** **  **  ** **       **  **  ** ******    #
#    **  ** **  ** **  **  ** **     *****    ******   **     **  **  ** ** **  ** **  **  ** ***   ** **  **  **     **    #
#    **  ** ****** **  **  ** ****** **       **  ***  ****** **  **  ** ** ****** **  **  **  ******  **  **  ** ******    #
#    **  ** ****** **  **  ** ****** **       **   *** ****** **  **  ** **  ** ** **  **  **   ****   **  **  ** ******    #
#															    															#
#															    															#
#															    															#
#    2010 - 2011 © HomePremiumCMS made by HomePemium as PremiumEye & Security by HomePremium and Merijnz		    		#
#															    															#
#    Powered by PhoenixPHP 3.7.1 (build 138000)										    									#
#															    															#
#															    															#
#															    															#
*###########################################################################################################################*
*/

define('USERNAME_REQUIRED', TRUE);
define('ACCOUNT_REQUIRED', TRUE);
include('global.php');
define("THIS_SCRIPT", 'staff');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

<html xmlns="http://www.w3.org/1999/xhtml"> 
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<head>
<title><?php echo $sitename." - ".$lang['staff']; ?></title>
    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
    <script type="text/javascript" src="Public/JS/jquery.history.js"></script>
    <link type="text/css" rel="stylesheet" href="Public/Styles/<?php echo $currentstyle ?>/CSS/main.css" />
</head> 
 
<body> 
 
<style type="text/css">
#column1 {
	overflow: hidden;
	width:450px;
	padding:0px 5px 10px 5px;
}
</style>

<?php include("system/header_com.php"); ?>

<div class="mainBox"> 

	<?php include("system/communitynav.php"); ?>

	<div class="mid" id="midcontent" style="margin-left: -4px;"> 

		<div class="column" id="column1">

			<?php
			$rankq = mysql_query("SELECT * FROM `ranks` WHERE id >= 3 ORDER BY id DESC");

			while($rank = mysql_fetch_array($rankq))

			{
			?>

				<div style="margin-top: 10px;" class="l_boxHeader_orange">

					<div class="titel">

						<?php echo $rank['name']; ?>

					</div>

				</div>
        
				<div class="contentBox">
        
					<?php
					$staffq = mysql_query("SELECT * FROM users WHERE rank = ".$rank['id']." ORDER BY rank DESC");
			
					$staffq_teller = mysql_num_rows($staffq);
			
					if($staffq_teller == 0){
				
					echo '<div class="boxContent">Er zijn nog geen mensen voor deze rang!</div>';
			
					}
			
					$color = 'odd';
			
					while($staff = mysql_fetch_array($staffq))
			
					{
					?>

						<div class="campaigncontainer" id="<?php echo $color; ?>">
                
							<div class="StaffBox">
                
								<img src="http://www.habbo.com/habbo-imaging/avatarimage?figure=<?php echo $staff['look']; ?>" alt="<?php echo $staff['username']; ?>" style="float:left" />
                    
								<div class="OnlineStatus">
                    
									<?php if($staff['online'] == 1){?>

										<div class="Online"></div>

									<?php }else{?>

										<div class="Offline"></div>

									<?php }?>

								</div>

								<div class="Usersname"><a href="home.php?u=<?php echo $staff['username']; ?>"><?php echo $staff['username']; ?></a></div>

								<div class="Usersmotto"><?php echo $staff['motto']; ?></div>

								<img src="./Public/Images/badges/<?php echo $rank['badgeid']; ?>.gif" alt="Teen Staff" align="right" />

								<div class="Usersmotto"><br><?php echo $lang['me_user_info_last_online']; ?>: <b><?php echo @date("d-m-Y", $staff["last_online"]); ?></b> <?php echo $lang['me_user_info_last_online_on']; ?> <b><?php echo @date("H:i", $staff["last_online"]); ?></b>

							</div>

						</div>

					</div>

					<?php
					if($color == 'odd')

					$color='even';

					else

					$color='odd';

					}

					echo('</div><div class="l_boxBottom"></div>');

					}
					?>

				</div>
		
			<div style="float: left;" class="column" id="column2">

				<div style="margin-left: 5px;" class="m_boxHeader_green">

					<div class="titel">

						Staff worden?

					</div>

				</div>

				<div style="width: 298px;" class="contentBox">

					<div class="boxContent">

						Om staff te worden, moet je voldoen aan een paar eisen. De eisen zijn als volgt:<br><br>
						- Je bent <b>13</b> jaar of ouder.<br>
						- Je hebt nog <b>nooit</b> een ban gehad.<br>
						- Je kunt <b>ABN</b> praten/schrijven.<br>
						- Je kunt goed met mensen om gaan.<br><br>
						Dit zijn de voorlopige eisen die wij kunnen stellen.<br>
						Wat we vooral verwachten van mensen die een rang willen: Je komt niet bij ons zeuren als je geen rang hebt op ons hotel. Dus dat je ons hotel gaat haten en zo. 
                        Als jij de sollicitaties niet bent door gekomen. Jammer maar helaas! Dan kun je altijd nog mee doen aan de volgende sollicitaties die dan zullen komen.
					</div>

				</div>

				<div style="margin-left: 5px;" class="m_boxBottom2"></div>
                
			</div>
		
			<?php include("system/sideads.php"); ?>

		</div> 

		<?php include("system/footer.php"); ?>

	</div> 
    
</div>

</body> 
</html>